package com.example.easypoi.demo2.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 学生导出类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class StudentExportVO {
    private String id;
    /**
     * 学生姓名
     */
    @Excel(name = "学生姓名", width = 30)
    private String name;
    /**
     * 学生性别
     */
    @Excel(name = "学生性别", replace = {"男_1", "女_0"}, suffix = "生")
    private int sex;
    @Excel(name = "出生日期", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd", width = 20)
    private Date birthday;
}